import Vue from "vue";
import Router from "vue-router";
// import HelloWorld from "@/components/HelloWorld";
import blank from "@/views/blank/blank";
import BaseLayout from "@/views/home/baseLayout";

Vue.use(Router);

export default new Router({
    scrollBehavior(to, from, savedPosition) {
        return { x: 0, y: 0 };
    },
    routes: [
        {
            path: "/",
            name: "blank",
            component: blank
        },
        {
            path: "/wstest",
            name: "wstest",
            component: () => import("@/views/test/wstest")
        },
        {
            path: "/home",
            name: "home",
            component: BaseLayout,
            children: [
                {
                    path: "/homePage",
                    name: "homePage",
                    component: () => import("@/views/home/homePage")
                }
            ]
        },
        {
            path: "/fillMsg",
            name: "fillMsg",
            component: () => import("@/views/fillMsg/fillMsg.vue")
        }
    ]
});
